import java.io.DataOutputStream;
import java.io.FileOutputStream;

public class EqualClas {
    static String a = "1";
    static int y = 1;
    private class a{

    }
    public class b{

    }
    protected class c{

    }
    public static void main(String[] args) throws Exception {
         int z = 2;
        b b1 = new EqualClas().new b();
        System.out.printf(a + y + z);
        Float a = new Float(2.0);
        Float b = new Float(2.0);
        Float e = 2f;
        Float d = 2f;
        Integer f = 2;
        Integer g = 2;
        Integer h = 4;
        Integer i = new Integer(4);
        Double c = new Double(2.0);
        System.out.println(a.equals(b));
        System.out.println(a.equals(c));
        System.out.println(a == b);
        System.out.println(e == d);
        System.out.println(f == g);
        System.out.println(h == i);
        try {

            FileOutputStream fileOutputStream = new FileOutputStream("a.txt");
            DataOutputStream dataOutputStream = new DataOutputStream(fileOutputStream);
            dataOutputStream.write(3);
            dataOutputStream.write(1);
            dataOutputStream.close();
            fileOutputStream.close();
        }finally {
            System.out.println("ee");

        }
    }
}
